﻿using FluentValidation;

namespace IdentityService.WebAPI.Controllers.UserAdmin.Request;
public record EditAdminUserRequest(string PhoneNum);
public class EditAdminUserRequestValidator : AbstractValidator<EditAdminUserRequest>
{
    public EditAdminUserRequestValidator()
    {
        RuleFor(e => e.PhoneNum)
            .NotNull().WithMessage("手机号码不能为空")
            .NotEmpty().WithMessage("手机号码不能为空");
    }
}